#pragma once
#define COL 9
#define ROW 9
#define COLS COL+2
#define ROWS ROW+2
#define COUNT 10
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void InitBoard(char board[ROWS][COLS], int rows, int cols,char set);
void DisplayBoard(char board[ROWS][COLS], int rows, int cols);
void SetMine(char board[ROWS][COLS], int rows, int cols);
void FindMine(char mine[ROWS][COLS], char show[ROWS][COLS], int rows, int cols);
int count_mine(char mine[ROWS][COLS], int x, int y);
void SpreadMine(char mine[ROWS][COLS],char show[ROWS][COLS], int x, int y);
int is_win(char board[ROWS][COLS], int rows, int cols);